package com.example.petstore.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author DD
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`order`")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品种类")
    private String type;

    @ApiModelProperty(value = "商品照片")
    private String image;

    @ApiModelProperty(value = "商品id")
    private String petId;

    @ApiModelProperty(value = "商铺id")
    private String shopId;

    @ApiModelProperty(value = "购买者ID")
    private String purchaserId;

    @ApiModelProperty(value = "价格")
    private Integer price;

    @ApiModelProperty(value = "1已支付 0未支付")
    private Integer isPay;

    @ApiModelProperty(value = "1已发货，0未发货")
    private Integer isShip;

    @ApiModelProperty(value = "1已收货，0未收货")
    private Integer isReceive;

    @ApiModelProperty(value = "0交易正常结束 1买家发起退货申请 2退货成功")
    private Integer returnStatus;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;


}
